<script>
export default {
  name: "headAssembly",
  data(){
    return{
      count:0
    }
  },
  methods:{
    add:this.count++
  }
}
</script>

<template>
<div>
  <div class="box">
    <button @click="add"></button>
    {{count}}
  </div>
</div>
</template>

<style scoped lang="less">
.box{
  height: 300px;
  background-color: red;
}
</style>